<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="icon" th:href="@{/img/logo.ico}" href="../static/img/logo.ico" type="images/x-ico"/>

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{css/bootstrap.min.css}">
    <title>登录</title>
    <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/css/style.css}">
    <link rel="stylesheet" th:href="@{css/login.css}" href="../static/css/login.css">
    <link href="../static/css/fontawesome/css/fontawesome.min.css" th:href="@{/css/fontawesome.min.css}" rel="stylesheet">
    <style type="text/css">
        /*手机端*/
        @media only screen and (max-width: 768px) {
            .bigbox {
                width: 350px;
                margin-left: 0;
            }

            .formbox {
                background-color: white;
                box-shadow: 10px 10px 5px #888888;
                border-radius: 5px;
            }

        }
    </style>
</head>
<body>
<div style="min-height: 85%">
    <div class="container" style=" text-align: center;
    margin-top: 130px;
">
        <div class="bigbox">
            <div class="myfont">
                <h3>学生信息管理系统</h3>
            </div>
            <div class="formbox">
                <h3>根据您的账号进行登录</h3>
                <form th:action="@{/login}" action="#" method="post">
                    <table>
                        <tr>
                            <td>
                                账号：
                            </td>
                            <td>
                                <input type="text" class="form-control" id="username"
                                       th:value="${username}" placeholder="账号(学号或工号)" name="username">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                密码：
                            </td>
                            <td>
                                <input type="password" class="form-control password" id="password"
                                       th:value="${password}" placeholder="密码(默认zut+账号后6位)" name="password">
                            </td>
                        </tr>
                    </table>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-bricky pull-right login" id="login"
                                onclick="return check()">
                            登录
                        </button>
                    </div>
                </form>
                <span th:text="${msg}" id="tip">4到16位，字母数字下划线，减号</span>
            </div>
        </div>
    </div>
</div>
<div class="copyright">
    2024 &copy; 学生信息管理系统<br>
</div>
<script src="../static/js/login.js" th:src="@{js/login.js}"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="../static/js/jquery.min.js" th:src="@{js/jquery.min.js}"></script>
<script src="../static/js/popper.min.js" th:src="@{js/popper.min.js}"></script>
<script src="../static/js/bootstrap.min.js" th:src="@{js/bootstrap.min.js}"></script>
</body>
</html>
